//
//  DDJobsService.h
//  DingDongZP
//
//  Created by Jyh on 16/3/22.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDBaseService.h"

@interface DDJobsService : DDBaseService

/**
 *  请求职位信息， 无需传入token
 *
 *  @param page         页码 从0开始， 不传默认返回第一页
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryJobsWithPage:(NSString *)page
                   successBlock:(successBlock)successBlock
                      failBlock:(faileBlock)failBlock;


/**
 *  请求推荐的职位信息
 *
 *  @param page         页码 从 0开始
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryRecommendJobsWithPage:(NSString *)page jobID:(NSString *)jobid
                      successBlock:(successBlock)successBlock
                         failBlock:(faileBlock)failBlock;

/**
 *  请求最新或者最热的职位  order  hottest最热 latest最新，默认最热
 *
 *  @param page
 *  @param order
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryHotestOrLatestJobsWithPage:(NSString *)page
                                  order:(NSString *)order
                           successBlock:(successBlock)successBlock
                              failBlock:(faileBlock)failBlock;

// 牛人端筛选职位信息
- (void)queryJobsWithJobId:(NSString *)jobId
                Filtertype:(NSString *)filtertype
                  FilterID:(NSString *)filterId
                      page:(NSString *)page
              SuccessBlock:(successBlock)successBlock
                 failBlock:(faileBlock)failBlock;

/**
 *  请求职位详情信息，（未登录状态） 无需传入token
 *
 *  @param jobid  职位Id
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryNoLoginJobsDetailWithJobId:(NSString *)jobid
             successBlock:(successBlock)successBlock
                failBlock:(faileBlock)failBlock;


/**
 *  请求职位详情信息，（登录状态） 需要传入token
 *
 *  @param jobid  职位Id
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryLoginJobsDetailWithJobId:(NSString *)jobid
                         successBlock:(successBlock)successBlock
                            failBlock:(faileBlock)failBlock;

/**
 *  请求某个职位是否标记为感兴趣
 *
 *  @param jobid  职位Id
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryInterestedJobWithJobId:(NSString *)jobid
                       successBlock:(successBlock)successBlock
                          failBlock:(faileBlock)failBlock;

/**
 *  标记某职位为感兴趣or不感兴趣
 *
 *  @param jobid  职位Id
 *  @param successBlock
 *  @param failBlock
 */
- (void)markInterestingJobWithJobId:(NSString *)jobid
                       successBlock:(successBlock)successBlock
                          failBlock:(faileBlock)failBlock;

/**
 *  牛人查询个人信息
 *
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryMyselfResumeSuccessBlock:(successBlock)successBlock
                            failBlock:(faileBlock)failBlock;


/**
 *  牛人端设置默认期望工作
 *
 *  @param expectJobID  期望工作ID
 *  @param successBlock
 *  @param failBlock
 */
- (void)setMyselfCurrentExpectJobId:(NSString *)expectJobID
                       successBlock:(successBlock)successBlock
                          failBlock:(faileBlock)failBlock;


/**
 *  牛人端请求发现页轮播图
 *
 *  @param callback 轮播图数组
 */
- (void)queryJobfindersAdsArray:(void (^)(NSArray *ads))callback;


- (void)reportBossWithBossId:(NSString *)bossid
                    reportId:(NSString *)reportId
                successBlock:(successBlock)successBlock
                   failBlock:(faileBlock)failBlock;


/**
 *  请求某雇主发布的所有职位
 *
 *  @param bossId       bossID
 *  @param page
 *  @param successBlock
 *  @param failBlock
 */
- (void)queryBossPublishedJobsWithBossID:(NSString *)bossId
                                    page:(NSString *)page
                            successBlock:(successBlock)successBlock
                               failBlock:(faileBlock)failBlock;

@end
